package com.lecyon.farm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lecyon.farm.base.BaseResponse;
import com.lecyon.farm.entity.FmAlreadySyncRecords;

import java.util.List;

/**
 * 已完成同步的记录 Service
 *
 * @author YaoZheng
 * @since 2020-04-16
 */
public interface IFmAlreadySyncRecordsService extends IService<FmAlreadySyncRecords> {

    /**
     * 记录已同步的信息
     *
     * @param fmAlreadySyncRecordsList 已同步的信息集合
     * @param sourceTableName          源表名
     * @return BaseResponse
     */
    BaseResponse recordSyncInfo(List<FmAlreadySyncRecords> fmAlreadySyncRecordsList, String sourceTableName, String methodName);


    /**
     * 获取已同步的信息的记录(区分表名)
     *
     * @param sourceTableName 源表名
     * @param methodName      方法名
     * @return
     */
    List<String> getAlreadyRecordIds(String sourceTableName, String methodName);
}
